{% extends 'preheat/base.html' %}

{% block title %}删除用户 - CDN预热平台{% endblock %}

{% block page_title %}删除用户{% endblock %}

{% block content %}
    <div class="card">
        <div class="card-body">
            <div class="alert alert-warning" role="alert">
                您确定要删除用户 <strong>{{ object.username }}</strong> 吗？此操作不可撤销。
            </div>
            
            <form method="post">
                {% csrf_token %}
                
                <div class="form-actions">
                    <button type="submit" class="btn btn-danger">确认删除</button>
                    <a href="{% url 'preheat:user_list' %}" class="btn btn-secondary">取消</a>
                </div>
            </form>
        </div>
    </div>
{% endblock %}